package com.java.threadLocal.singleThread;

public class MyThreadLocal {
	
	private static ThreadLocal<String> threadLocal = new ThreadLocal<>() ;
	
	static {
		threadLocal.set("测试参数") ;	//把一个字符串放入到当前线程中
	}
	
	public static String getVariables() {
		return threadLocal.get() ;
	}

}
